Warning: newtype `CInt' is used in an FFI declaration,

Posted by vivian on Stack Overflow See other posts from Stack Overflow or by vivian
Published on 2012-06-20T03:05:09Z Indexed on 2012/06/20 3:15 UTC
Read the original article Hit count: 214

Filed under:
|

When building gtk2hs-buildtools with ghc 7.4.2, I get the following warning:

c2hs/toplevel/C2HSConfig.hs:110:1:
    Warning: newtype `CInt' is used in an FFI declaration,
             but its constructor is not in scope.
             This will become an error in GHC 7.6.1.
    When checking declaration:
      foreign import ccall safe "static bitfield_direction" bitfield_direction
        :: CInt

I get similar warnings with FFI calls, even though I have import Foreign.C.Types(CInt).

What is the correct way of getting rid of this warning?

© Stack Overflow or respective owner

Related posts about haskell

Related posts about ffi